package com.xydtech.ecard.config.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xydtech.ecard.config.mapper.EcardServeModuleFunctionMapper;
import com.xydtech.ecard.config.domain.EcardServeModuleFunction;
import com.xydtech.ecard.config.service.IEcardServeModuleFunctionService;
import com.xydtech.common.core.text.Convert;

/**
 * 服务模块功能配置Service业务层处理
 * 
 * @author JHON
 * @date 2022-06-23
 */
@Service
public class EcardServeModuleFunctionServiceImpl implements IEcardServeModuleFunctionService 
{
    @Autowired
    private EcardServeModuleFunctionMapper ecardServeModuleFunctionMapper;

    /**
     * 查询服务模块功能配置
     * 
     * @param id 服务模块功能配置主键
     * @return 服务模块功能配置
     */
    @Override
    public EcardServeModuleFunction selectEcardServeModuleFunctionById(Long id)
    {
        return ecardServeModuleFunctionMapper.selectEcardServeModuleFunctionById(id);
    }

    /**
     * 查询服务模块功能配置列表
     * 
     * @param ecardServeModuleFunction 服务模块功能配置
     * @return 服务模块功能配置
     */
    @Override
    public List<EcardServeModuleFunction> selectEcardServeModuleFunctionList(EcardServeModuleFunction ecardServeModuleFunction)
    {
        return ecardServeModuleFunctionMapper.selectEcardServeModuleFunctionList(ecardServeModuleFunction);
    }

    /**
     * 新增服务模块功能配置
     * 
     * @param ecardServeModuleFunction 服务模块功能配置
     * @return 结果
     */
    @Override
    public int insertEcardServeModuleFunction(EcardServeModuleFunction ecardServeModuleFunction)
    {
        return ecardServeModuleFunctionMapper.insertEcardServeModuleFunction(ecardServeModuleFunction);
    }

    /**
     * 修改服务模块功能配置
     * 
     * @param ecardServeModuleFunction 服务模块功能配置
     * @return 结果
     */
    @Override
    public int updateEcardServeModuleFunction(EcardServeModuleFunction ecardServeModuleFunction)
    {
        return ecardServeModuleFunctionMapper.updateEcardServeModuleFunction(ecardServeModuleFunction);
    }

    /**
     * 批量删除服务模块功能配置
     * 
     * @param ids 需要删除的服务模块功能配置主键
     * @return 结果
     */
    @Override
    public int deleteEcardServeModuleFunctionByIds(String ids)
    {
        return ecardServeModuleFunctionMapper.deleteEcardServeModuleFunctionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除服务模块功能配置信息
     * 
     * @param id 服务模块功能配置主键
     * @return 结果
     */
    @Override
    public int deleteEcardServeModuleFunctionById(Long id)
    {
        return ecardServeModuleFunctionMapper.deleteEcardServeModuleFunctionById(id);
    }
}
